CC = aarch64-linux-gnu-gcc
#CC = gcc
SRC = iot_server.c  coord.c recv_coord_thread.c  recv_mob_thread.c
FLAGS = -g -Wall -O0  
INC = -I/home/robin/work/temp/install/include/
LIB = -L/home/robin/work/temp/install/lib/ -lpthread -lsqlite3
all: iot_server iot_client

iot_server: iot_server.c coord.c recv_coord_thread.c recv_mob_thread.c
	$(CC) $(INC) $(LIB) $(SRC)  -o iot_server  $(FLAGS)

iot_client: iot_client.c
	gcc iot_client.c -o iot_client -g -Wall -O0 -lpthread

install:
	scp iot_server uart_data.txt root@192.168.104.221:/drv/iot_appok

clean:
	rm -rf iot_server 
	rm -rf iot_client

